package yx.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsConfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_config", catalog = "")
public class BsConfig implements java.io.Serializable {

	// Fields

	private Integer id;
	private String type;
	private String tableName;
	private String fieldName;

	// Constructors

	/** default constructor */
	public BsConfig() {
	}

	/** full constructor */
	public BsConfig(String type, String tableName, String fieldName) {
		this.type = type;
		this.tableName = tableName;
		this.fieldName = fieldName;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "TYPE", length = 2)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "TABLE_NAME", length = 32)
	public String getTableName() {
		return this.tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	@Column(name = "FIELD_NAME", length = 32)
	public String getFieldName() {
		return this.fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

}